import request from '@/utils/request'

// 查询微信订单列表
export function listWechatPaymentHistory(query) {
  return request({
    url: '/oms/wechatPaymentHistory/list',
    method: 'get',
    params: query
  })
}

// 查询微信订单详细
export function getWechatPaymentHistory(id) {
  return request({
    url: '/oms/wechatPaymentHistory/' + id,
    method: 'get'
  })
}

// 新增微信订单
export function addWechatPaymentHistory(data) {
  return request({
    url: '/oms/wechatPaymentHistory',
    method: 'post',
    data: data
  })
}

// 修改微信订单
export function updateWechatPaymentHistory(data) {
  return request({
    url: '/oms/wechatPaymentHistory',
    method: 'put',
    data: data
  })
}

// 删除微信订单
export function delWechatPaymentHistory(id) {
  return request({
    url: '/oms/wechatPaymentHistory/' + id,
    method: 'delete'
  })
}
